import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Table from "../components/Table";
import User from "../components/User";
import Dept from "../components/Dept";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },{
      path: '/table',
      name: 'table',
      component: Table
    },{
      path: '/user',
      name: 'User',
      component: User
    },{
      path: '/dept',
      name: 'Dept',
      component: Dept
    }
  ]
})
